<?php
$list = UserController::findAll();	
?>

	  <div id="newEntity">
		<span>
		  <a href="../<?php echo $www;?>/index_user.php?action=new">New User</a>
		</span>
	  </div>

	  <table class=table>
		<tr>
		  <th>Username :</th>
		  <th>Name :</th>
		  <th>&nbsp;</th>
		  <th>&nbsp;</th>
		</tr>
	<?php
	foreach($list as $u){
	?>	
		<tr>
		  <td><?php print $u->username?>&nbsp;</td>
		  <td><?php print $u->name?>&nbsp;</td>
		  <td>
<a href="../<?php echo $www;?>/index_user.php?action=update&amp;id=<?php print $u->username?>">Edit</a>
		  </td>
		  <td>
			<a href="javascript:deleteObject('<?php print $u->username?>','user')">Delete</a>
		  </td>
		</tr>
	<?php
	}
	?>		
	  </table>
	